/**
 * @Copyright: Interactive Business Solution Pte Ltd, Singapore
 * @Author: Li Wen, 2008-01-08
 * @Version: 080108.001
 * Model class for tour item library, following properties are requried
 * id, name, cityid, desp, type, offlineOperator,updateTime
 */
package com.ibsol.model
{
	[Bindable]
	[RemoteClass(alias="com.ibsol.tourix.model.Touritemlib")]
	public class TourItemLib
	{
		private var _id:int;
		private var _name:String;
		private var _cityid:int;
		private var _desp:String;
		private var _type:String;
		private var _offlineOperator:String;
		private var _updateTime:String;
		private var _cityName:String;
		private var _country:String;
		private var _pairid:String;
		
		public function TourItemLib()
		{
			_id = 0;
			_name = "";
			_cityid = 0;
			_desp = "";
			_type = "";
			_offlineOperator = "";
			_updateTime = "";
			_cityName = "";
			_pairid="";
			_country = "";
		}
		
		public function set id(value:int){
			this._id = value;
		}
		
		public function set name(value:String){
			this._name = value;
		}
		public function set cityid(value:int){
			this._cityid = value;
		}
		
		public function set desp(value:String){
			this._desp = value;
		}
		
		public function set type(value:String){
			this._type = value;
		}
		
		public function set offlineOperator(value:String){
			this._offlineOperator = value;
		}
		
		public function set updateTime(value:String){
			this._updateTime = value;
		}
		
		public function set cityName(value:String){
			this._cityName = value;
		}
		
		public function set country(value:String){
			this._country = value;
		}
		public function set pairid(value:String):void{
			this._pairid=value;
		}
		public function get pairid():String{
			return this._pairid;
		}
		
		public function get id():int{
			return this._id;
		}
		
		public function get name():String{
			return this._name;
		}
		
		public function get cityid():int{
			return this._cityid;
		}
		
		public function get desp():String{
			return this._desp;
		}
		
		public function get type():String{
			return this._type;
		}
		
		public function get offlineOperator():String{
			return this._offlineOperator;
		}
		
		public function get updateTime():String{
			return this._updateTime;
		}
		
		public function get cityName():String{
			return this._cityName;
		}
		
		public function get country():String{
			return this._country;
		}
		
		public function toTourItem():TourItem
		{
			var t:TourItem = new TourItem();
			t.name = this.name;
			t.cityid = this.cityid;
			t.cityName = this.cityName;
			t.country = this.country;
			t.type = this.type;
			t.desp = this.desp;
			return t;
		}

	}
}